#pragma once
#include "pgl\mfc\pglevent.h"
using namespace gfxinterface;

class PGLMFC_EXT_CLASS CPGLCustomEvent :
	public CPGLPropEvent
{
public:
	PGLMFC_DECLARE_EVENT(CPGLAddPointEvent, CPGLPropEvent);

	CPGLCustomEvent();
	virtual ~CPGLCustomEvent();
	void Refresh();
	CPGLDialog* GetPGLDialog();
	void GetCoordPoint(CPoint point,double& x,double& y);
	CGDIpInterface GetParentGfxInterface(){return GetPGLDialog()->GetGfxInterface();}
	void GetWorldStep(double& stepX,double& stepY,int pixel=10);
};